package Tester;

import Navigator.Navigable;
import Navigator.NavigationInDewToEarth;
import Navigator.NavigationInDewToHelios;
import org.junit.Test;

import static org.junit.Assert.assertTrue;

/**
 * Created by IntelliJ IDEA.
 * User: anton
 * Date: 23.03.12
 * Time: 19:17
 * To change this template use File | Settings | File Templates.
 */
public class NavigationTest {
    private String earthReport = "Soon be at home..";
    private String heliosReport = "Still being in Solar system..";

    @Test
    public void testNavigationInDewToEarth() {
        Navigable antenna = new NavigationInDewToEarth();
        assertTrue(antenna.getCurrentLocation().contains(earthReport));
    }

    @Test
    public void testNavigationInDewToHelios() {
        Navigable antenna = new NavigationInDewToHelios();
        assertTrue(antenna.getCurrentLocation().contains(heliosReport));
    }
}
